/**
 * Copyright 2005-2012 Brin.com
 * All rights reserved.
 * 
 * @project
 * @author Brin
 * @version 1.0
 * @data 2011-05-01
 */
package com.brin.core.util;

import java.util.ResourceBundle;

public class PropertiesUtil {

	protected static ResourceBundle res;
	protected static final String SERVER_WEB = "server.web";
	protected static final String SERVER_STATIC = "server.static";
	protected static final String SERVER_ZUI = "server.zui";
	protected static final String SERVER_DOWNLOAD = "server.download";
	protected static final String GLOBAL_PROPERTIES_FILE = "/config/source";
	
	static {
		if (res == null) res = ResourceBundle.getBundle(GLOBAL_PROPERTIES_FILE);
	}
	
	public static String get(String key) {
		
		return res.getString(key);
	}
}
